package com.newstore.classes;

import java.util.HashMap;
import java.util.Vector;

/**
 * Représente la commande qui contient un statut, une adresse, des produits et un barcode
 * @author Guillaume
 * @version 1.0
 */
public class Order
{
	/*
	public final static String stringInHold = "Enattente";
	public final static String stringInPreparation = "En pr�paration";
	public final static String stringConsigned = "Envoy�e";
	
	public enum StatusEnum { 
		IN_HOLD(stringInHold), 
		IN_PREPARATION(stringInPreparation), 
		CONSIGNED(stringConsigned);
		
		String value; 
		
		public String getValue()
		{
			return value;
		}
		
		StatusEnum(String value)
		{
			this.value = value;
		}
		
	};*/
	
	private int id;
	//private StatusEnum status;
	private String status;
	private String reference;
	private Barcode barcode;
	private Vector<HashMap<Product, Integer> > contentOrder;
	private Delivery delivery;
	
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	
	public String getStatus()
	{
		return status;
	}
	public void setStatus(String status)
	{
		this.status = status;
	}
	
//	public StatusEnum getStatus()
//	{
//		return status;
//	}
//	public void setStatus(StatusEnum status)
//	{
//		this.status = status;
//	}
	
	
		
	
	public String getReference()
	{
		return reference;
	}
	public void setReference(String reference)
	{
		this.reference = reference;
	}	
	public Vector<HashMap<Product, Integer>> getContentOrder()
	{
		return contentOrder;
	}
	public void setContentOrder(Vector<HashMap<Product, Integer>> contentOrder)
	{
		this.contentOrder = contentOrder;
	}
	
	public Barcode getBarcode()
	{
		return barcode;
	}
	public void setBarcode(Barcode barcode)
	{
		this.barcode = barcode;
	}
	public Delivery getDelivery()
	{
		return delivery;
	}
	public void setDelivery(Delivery delivery)
	{
		this.delivery = delivery;
	}
	public Order()
	{
	
	}
	
	
	public Order(int id, String status, String reference, Barcode barcode,
			Vector<HashMap<Product, Integer>> contentOrder, Delivery delivery)
	{
		this.id = id;
		this.status= status;
		this.reference = reference;
		this.barcode = barcode;
		this.contentOrder = contentOrder;
		this.delivery = delivery;
	}

	public Order(String status, String reference,
			Vector<HashMap<Product, Integer>> contentOrder,
			Delivery delivery)
	{
		this.status = status;
		this.reference = reference;
		this.contentOrder = contentOrder;
		this.delivery = delivery;
	}
	
	
}
